Skip to content

Чижов Максим. Лабораторная работа №4. MLIR. Вариант 1. #160

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: course-spring-2025
Choose a base branch
from

Conversation

MaximChizhov
Copy link

MLIR-пасс добавляет вызовы функций trace_loop_iter_begin и trace_loop_iter_end на каждую итерацию поддерживаемых циклов. Эти функции вставляются в начало и конец тела цикла соответственно. Поддерживаются типы циклов: affine.for, scf.for, scf.while.

Comment on lines +56 to +59
^bb0(%i_in: index):
// CHECK: call @trace_loop_iter_begin
"test.op"() : () -> ()
// CHECK: call @trace_loop_iter_end

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, ensure that call @trace_loop_iter_begin that call @trace_loop_iter_end at the beginning and at the end of loop body

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants